<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>netaddr</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th bgcolor="#70b0f0" class="navbar-select"
          >&nbsp;&nbsp;&nbsp;Home&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >netaddr</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        Package&nbsp;netaddr
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="netaddr-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="netaddr-module.html">Package netaddr</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-comment">#!/usr/bin/env python</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#-----------------------------------------------------------------------------</tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#   Copyright (c) 2008, David P. D. Moss. All rights reserved.</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#   Released under the BSD license. See the LICENSE file for details.</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#-----------------------------------------------------------------------------</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-docstring">"""</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-docstring">network address manipulation, done Pythonically</tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"><tt class="py-name">__version__</tt> <tt class="py-op">=</tt> <tt class="py-string">'0.6'</tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">struct</tt> <tt class="py-keyword">as</tt> <tt class="py-name">_struct</tt> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line"> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line"><tt class="py-comment">#-----------------------------------------------------------------------------</tt> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#  Constants.</tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#-----------------------------------------------------------------------------</tt> </tt>
<a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"><tt class="py-comment">#: True if platform is natively big endian, False otherwise.</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt id="link-0" class="py-name" targets="Variable netaddr.BIG_ENDIAN_PLATFORM=netaddr-module.html#BIG_ENDIAN_PLATFORM"><a title="netaddr.BIG_ENDIAN_PLATFORM" class="py-name" href="#" onclick="return doclink('link-0', 'BIG_ENDIAN_PLATFORM', 'link-0');">BIG_ENDIAN_PLATFORM</a></tt> <tt class="py-op">=</tt> <tt class="py-name">_struct</tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'=h'</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">_struct</tt><tt class="py-op">.</tt><tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&gt;h'</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line"> </tt>
<a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line"><tt id="link-1" class="py-name" targets="Variable netaddr.AT_UNSPEC=netaddr-module.html#AT_UNSPEC"><a title="netaddr.AT_UNSPEC" class="py-name" href="#" onclick="return doclink('link-1', 'AT_UNSPEC', 'link-1');">AT_UNSPEC</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0x0</tt>     <tt class="py-comment">#: unspecified address type constant.</tt> </tt>
<a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line"><tt id="link-2" class="py-name" targets="Variable netaddr.AT_INET=netaddr-module.html#AT_INET"><a title="netaddr.AT_INET" class="py-name" href="#" onclick="return doclink('link-2', 'AT_INET', 'link-2');">AT_INET</a></tt>   <tt class="py-op">=</tt> <tt class="py-number">0x4</tt>     <tt class="py-comment">#: IPv4 address type constant.</tt> </tt>
<a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line"><tt id="link-3" class="py-name" targets="Variable netaddr.AT_INET6=netaddr-module.html#AT_INET6"><a title="netaddr.AT_INET6" class="py-name" href="#" onclick="return doclink('link-3', 'AT_INET6', 'link-3');">AT_INET6</a></tt>  <tt class="py-op">=</tt> <tt class="py-number">0x6</tt>     <tt class="py-comment">#: IPv6 address type constant.</tt> </tt>
<a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line"><tt id="link-4" class="py-name" targets="Variable netaddr.AT_LINK=netaddr-module.html#AT_LINK"><a title="netaddr.AT_LINK" class="py-name" href="#" onclick="return doclink('link-4', 'AT_LINK', 'link-4');">AT_LINK</a></tt>   <tt class="py-op">=</tt> <tt class="py-number">0x30</tt>    <tt class="py-comment">#: MAC/EUI-48 address type constant.</tt> </tt>
<a name="L25"></a><tt class="py-lineno">25</tt>  <tt class="py-line"><tt id="link-5" class="py-name" targets="Variable netaddr.AT_EUI64=netaddr-module.html#AT_EUI64"><a title="netaddr.AT_EUI64" class="py-name" href="#" onclick="return doclink('link-5', 'AT_EUI64', 'link-5');">AT_EUI64</a></tt>  <tt class="py-op">=</tt> <tt class="py-number">0x40</tt>    <tt class="py-comment">#: EUI-64 address type constant.</tt> </tt>
<a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line"> </tt>
<a name="L27"></a><tt class="py-lineno">27</tt>  <tt class="py-line"><tt class="py-comment">#: Address type to address description lookup dictionary.</tt> </tt>
<a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt id="link-6" class="py-name" targets="Variable netaddr.AT_NAMES=netaddr-module.html#AT_NAMES"><a title="netaddr.AT_NAMES" class="py-name" href="#" onclick="return doclink('link-6', 'AT_NAMES', 'link-6');">AT_NAMES</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt> </tt>
<a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line">    <tt class="py-comment">#   Address Type : Descriptive Name.</tt> </tt>
<a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line">    <tt id="link-7" class="py-name"><a title="netaddr.AT_UNSPEC" class="py-name" href="#" onclick="return doclink('link-7', 'AT_UNSPEC', 'link-1');">AT_UNSPEC</a></tt>   <tt class="py-op">:</tt> <tt class="py-string">'unspecified'</tt><tt class="py-op">,</tt> </tt>
<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line">    <tt id="link-8" class="py-name"><a title="netaddr.AT_INET" class="py-name" href="#" onclick="return doclink('link-8', 'AT_INET', 'link-2');">AT_INET</a></tt>     <tt class="py-op">:</tt> <tt class="py-string">'IPv4'</tt><tt class="py-op">,</tt> </tt>
<a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line">    <tt id="link-9" class="py-name"><a title="netaddr.AT_INET6" class="py-name" href="#" onclick="return doclink('link-9', 'AT_INET6', 'link-3');">AT_INET6</a></tt>    <tt class="py-op">:</tt> <tt class="py-string">'IPv6'</tt><tt class="py-op">,</tt> </tt>
<a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line">    <tt id="link-10" class="py-name"><a title="netaddr.AT_LINK" class="py-name" href="#" onclick="return doclink('link-10', 'AT_LINK', 'link-4');">AT_LINK</a></tt>     <tt class="py-op">:</tt> <tt class="py-string">'MAC'</tt><tt class="py-op">,</tt> </tt>
<a name="L34"></a><tt class="py-lineno">34</tt>  <tt class="py-line">    <tt id="link-11" class="py-name"><a title="netaddr.AT_EUI64" class="py-name" href="#" onclick="return doclink('link-11', 'AT_EUI64', 'link-5');">AT_EUI64</a></tt>    <tt class="py-op">:</tt> <tt class="py-string">'EUI-64'</tt><tt class="py-op">,</tt> </tt>
<a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line"><tt class="py-op">}</tt> </tt>
<a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line"> </tt>
<a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line"><tt class="py-comment">#-----------------------------------------------------------------------------</tt> </tt>
<a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#   Custom exceptions.</tt> </tt>
<a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#-----------------------------------------------------------------------------</tt> </tt>
<a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="AddrFormatError"></a><div id="AddrFormatError-def"><a name="L41"></a><tt class="py-lineno">41</tt> <a class="py-toggle" href="#" id="AddrFormatError-toggle" onclick="return toggle('AddrFormatError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="netaddr.AddrFormatError-class.html">AddrFormatError</a><tt class="py-op">(</tt><tt class="py-base-class">Exception</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="AddrFormatError-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="AddrFormatError-expanded"><a name="L42"></a><tt class="py-lineno">42</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line"><tt class="py-docstring">    An Exception indicating that a network address format is not recognised.</tt> </tt>
<a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L45"></a><tt class="py-lineno">45</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line"> </tt>
<a name="AddrConversionError"></a><div id="AddrConversionError-def"><a name="L47"></a><tt class="py-lineno">47</tt> <a class="py-toggle" href="#" id="AddrConversionError-toggle" onclick="return toggle('AddrConversionError');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="netaddr.AddrConversionError-class.html">AddrConversionError</a><tt class="py-op">(</tt><tt class="py-base-class">Exception</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="AddrConversionError-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="AddrConversionError-expanded"><a name="L48"></a><tt class="py-lineno">48</tt>  <tt class="py-line">    <tt class="py-docstring">"""</tt> </tt>
<a name="L49"></a><tt class="py-lineno">49</tt>  <tt class="py-line"><tt class="py-docstring">    An Exception indicating a failure to convert between address types or</tt> </tt>
<a name="L50"></a><tt class="py-lineno">50</tt>  <tt class="py-line"><tt class="py-docstring">    notations.</tt> </tt>
<a name="L51"></a><tt class="py-lineno">51</tt>  <tt class="py-line"><tt class="py-docstring">    """</tt> </tt>
<a name="L52"></a><tt class="py-lineno">52</tt>  <tt class="py-line">    <tt class="py-keyword">pass</tt> </tt>
</div><a name="L53"></a><tt class="py-lineno">53</tt>  <tt class="py-line"> </tt>
<a name="L54"></a><tt class="py-lineno">54</tt>  <tt class="py-line"><tt class="py-comment">#-----------------------------------------------------------------------------</tt> </tt>
<a name="L55"></a><tt class="py-lineno">55</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#   Submodule imports.</tt> </tt>
<a name="L56"></a><tt class="py-lineno">56</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#-----------------------------------------------------------------------------</tt> </tt>
<a name="L57"></a><tt class="py-lineno">57</tt>  <tt class="py-line"><tt class="py-comment"></tt> </tt>
<a name="L58"></a><tt class="py-lineno">58</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-12" class="py-name" targets="Package netaddr=netaddr-module.html"><a title="netaddr" class="py-name" href="#" onclick="return doclink('link-12', 'netaddr', 'link-12');">netaddr</a></tt><tt class="py-op">.</tt><tt id="link-13" class="py-name" targets="Module netaddr.address=netaddr.address-module.html,Method netaddr.eui.IAB.address()=netaddr.eui.IAB-class.html#address,Method netaddr.eui.OUI.address()=netaddr.eui.OUI-class.html#address"><a title="netaddr.address
netaddr.eui.IAB.address
netaddr.eui.OUI.address" class="py-name" href="#" onclick="return doclink('link-13', 'address', 'link-13');">address</a></tt> <tt class="py-keyword">import</tt> <tt id="link-14" class="py-name" targets="Function netaddr.address.nrange()=netaddr.address-module.html#nrange"><a title="netaddr.address.nrange" class="py-name" href="#" onclick="return doclink('link-14', 'nrange', 'link-14');">nrange</a></tt><tt class="py-op">,</tt> <tt id="link-15" class="py-name" targets="Class netaddr.address.IP=netaddr.address.IP-class.html"><a title="netaddr.address.IP" class="py-name" href="#" onclick="return doclink('link-15', 'IP', 'link-15');">IP</a></tt><tt class="py-op">,</tt> <tt id="link-16" class="py-name" targets="Class netaddr.address.IPRange=netaddr.address.IPRange-class.html"><a title="netaddr.address.IPRange" class="py-name" href="#" onclick="return doclink('link-16', 'IPRange', 'link-16');">IPRange</a></tt><tt class="py-op">,</tt> <tt id="link-17" class="py-name" targets="Class netaddr.address.IPRangeSet=netaddr.address.IPRangeSet-class.html"><a title="netaddr.address.IPRangeSet" class="py-name" href="#" onclick="return doclink('link-17', 'IPRangeSet', 'link-17');">IPRangeSet</a></tt><tt class="py-op">,</tt> <tt id="link-18" class="py-name" targets="Class netaddr.address.CIDR=netaddr.address.CIDR-class.html"><a title="netaddr.address.CIDR" class="py-name" href="#" onclick="return doclink('link-18', 'CIDR', 'link-18');">CIDR</a></tt><tt class="py-op">,</tt> \ </tt>
<a name="L59"></a><tt class="py-lineno">59</tt>  <tt class="py-line">    <tt id="link-19" class="py-name" targets="Class netaddr.address.Wildcard=netaddr.address.Wildcard-class.html"><a title="netaddr.address.Wildcard" class="py-name" href="#" onclick="return doclink('link-19', 'Wildcard', 'link-19');">Wildcard</a></tt><tt class="py-op">,</tt> <tt id="link-20" class="py-name" targets="Class netaddr.address.EUI=netaddr.address.EUI-class.html"><a title="netaddr.address.EUI" class="py-name" href="#" onclick="return doclink('link-20', 'EUI', 'link-20');">EUI</a></tt> </tt>
<a name="L60"></a><tt class="py-lineno">60</tt>  <tt class="py-line"> </tt>
<a name="L61"></a><tt class="py-lineno">61</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-21" class="py-name"><a title="netaddr" class="py-name" href="#" onclick="return doclink('link-21', 'netaddr', 'link-12');">netaddr</a></tt><tt class="py-op">.</tt><tt id="link-22" class="py-name" targets="Package netaddr.eui=netaddr.eui-module.html"><a title="netaddr.eui" class="py-name" href="#" onclick="return doclink('link-22', 'eui', 'link-22');">eui</a></tt> <tt class="py-keyword">import</tt> <tt id="link-23" class="py-name" targets="Class netaddr.eui.OUI=netaddr.eui.OUI-class.html"><a title="netaddr.eui.OUI" class="py-name" href="#" onclick="return doclink('link-23', 'OUI', 'link-23');">OUI</a></tt><tt class="py-op">,</tt> <tt id="link-24" class="py-name" targets="Class netaddr.eui.IAB=netaddr.eui.IAB-class.html"><a title="netaddr.eui.IAB" class="py-name" href="#" onclick="return doclink('link-24', 'IAB', 'link-24');">IAB</a></tt><tt class="py-op">,</tt> <tt id="link-25" class="py-name" targets="Class netaddr.eui.NotRegisteredError=netaddr.eui.NotRegisteredError-class.html"><a title="netaddr.eui.NotRegisteredError" class="py-name" href="#" onclick="return doclink('link-25', 'NotRegisteredError', 'link-25');">NotRegisteredError</a></tt> </tt>
<a name="L62"></a><tt class="py-lineno">62</tt>  <tt class="py-line"> </tt>
<a name="L63"></a><tt class="py-lineno">63</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-26" class="py-name"><a title="netaddr" class="py-name" href="#" onclick="return doclink('link-26', 'netaddr', 'link-12');">netaddr</a></tt><tt class="py-op">.</tt><tt id="link-27" class="py-name" targets="Variable netaddr.address.Addr.strategy=netaddr.address.Addr-class.html#strategy,Variable netaddr.address.CIDR.strategy=netaddr.address.CIDR-class.html#strategy,Variable netaddr.address.EUI.strategy=netaddr.address.EUI-class.html#strategy,Variable netaddr.address.IP.strategy=netaddr.address.IP-class.html#strategy,Variable netaddr.address.IPRange.strategy=netaddr.address.IPRange-class.html#strategy,Variable netaddr.address.Wildcard.strategy=netaddr.address.Wildcard-class.html#strategy,Module netaddr.strategy=netaddr.strategy-module.html"><a title="netaddr.address.Addr.strategy
netaddr.address.CIDR.strategy
netaddr.address.EUI.strategy
netaddr.address.IP.strategy
netaddr.address.IPRange.strategy
netaddr.address.Wildcard.strategy
netaddr.strategy" class="py-name" href="#" onclick="return doclink('link-27', 'strategy', 'link-27');">strategy</a></tt> <tt class="py-keyword">import</tt> <tt id="link-28" class="py-name" targets="Variable netaddr.ST_IPV4=netaddr-module.html#ST_IPV4,Variable netaddr.strategy.ST_IPV4=netaddr.strategy-module.html#ST_IPV4"><a title="netaddr.ST_IPV4
netaddr.strategy.ST_IPV4" class="py-name" href="#" onclick="return doclink('link-28', 'ST_IPV4', 'link-28');">ST_IPV4</a></tt><tt class="py-op">,</tt> <tt id="link-29" class="py-name" targets="Variable netaddr.ST_IPV6=netaddr-module.html#ST_IPV6,Variable netaddr.strategy.ST_IPV6=netaddr.strategy-module.html#ST_IPV6"><a title="netaddr.ST_IPV6
netaddr.strategy.ST_IPV6" class="py-name" href="#" onclick="return doclink('link-29', 'ST_IPV6', 'link-29');">ST_IPV6</a></tt><tt class="py-op">,</tt> <tt id="link-30" class="py-name" targets="Variable netaddr.ST_EUI48=netaddr-module.html#ST_EUI48,Variable netaddr.strategy.ST_EUI48=netaddr.strategy-module.html#ST_EUI48"><a title="netaddr.ST_EUI48
netaddr.strategy.ST_EUI48" class="py-name" href="#" onclick="return doclink('link-30', 'ST_EUI48', 'link-30');">ST_EUI48</a></tt><tt class="py-op">,</tt> <tt id="link-31" class="py-name" targets="Variable netaddr.ST_EUI64=netaddr-module.html#ST_EUI64,Variable netaddr.strategy.ST_EUI64=netaddr.strategy-module.html#ST_EUI64"><a title="netaddr.ST_EUI64
netaddr.strategy.ST_EUI64" class="py-name" href="#" onclick="return doclink('link-31', 'ST_EUI64', 'link-31');">ST_EUI64</a></tt> </tt>
<a name="L64"></a><tt class="py-lineno">64</tt>  <tt class="py-line"> </tt>
<a name="L65"></a><tt class="py-lineno">65</tt>  <tt class="py-line"><tt class="py-comment">#-----------------------------------------------------------------------------</tt> </tt>
<a name="L66"></a><tt class="py-lineno">66</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#   Public interface.</tt> </tt>
<a name="L67"></a><tt class="py-lineno">67</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-comment">#-----------------------------------------------------------------------------</tt> </tt>
<a name="L68"></a><tt class="py-lineno">68</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-name">__all__</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt> </tt>
<a name="L69"></a><tt class="py-lineno">69</tt>  <tt class="py-line">     <tt class="py-comment"># type constants</tt> </tt>
<a name="L70"></a><tt class="py-lineno">70</tt>  <tt class="py-line">    <tt class="py-string">'AT_INET'</tt><tt class="py-op">,</tt> <tt class="py-string">'AT_INET6'</tt><tt class="py-op">,</tt> <tt class="py-string">'AT_LINK'</tt><tt class="py-op">,</tt> <tt class="py-string">'AT_EUI64'</tt><tt class="py-op">,</tt> </tt>
<a name="L71"></a><tt class="py-lineno">71</tt>  <tt class="py-line"> </tt>
<a name="L72"></a><tt class="py-lineno">72</tt>  <tt class="py-line">    <tt class="py-comment"># module specific exceptions</tt> </tt>
<a name="L73"></a><tt class="py-lineno">73</tt>  <tt class="py-line">    <tt class="py-string">'AddrFormatError'</tt><tt class="py-op">,</tt> <tt class="py-string">'AddrConversionError'</tt><tt class="py-op">,</tt> <tt class="py-string">'NotRegisteredError'</tt><tt class="py-op">,</tt> </tt>
<a name="L74"></a><tt class="py-lineno">74</tt>  <tt class="py-line"> </tt>
<a name="L75"></a><tt class="py-lineno">75</tt>  <tt class="py-line">    <tt class="py-comment"># shared strategy objects</tt> </tt>
<a name="L76"></a><tt class="py-lineno">76</tt>  <tt class="py-line">    <tt class="py-string">'ST_IPV4'</tt><tt class="py-op">,</tt> <tt class="py-string">'ST_IPV6'</tt><tt class="py-op">,</tt> <tt class="py-string">'ST_EUI48'</tt><tt class="py-op">,</tt> <tt class="py-string">'ST_EUI64'</tt><tt class="py-op">,</tt> </tt>
<a name="L77"></a><tt class="py-lineno">77</tt>  <tt class="py-line"> </tt>
<a name="L78"></a><tt class="py-lineno">78</tt>  <tt class="py-line">    <tt class="py-comment"># main interface classes</tt> </tt>
<a name="L79"></a><tt class="py-lineno">79</tt>  <tt class="py-line">    <tt class="py-string">'CIDR'</tt><tt class="py-op">,</tt> <tt class="py-string">'IP'</tt><tt class="py-op">,</tt> <tt class="py-string">'IPRange'</tt><tt class="py-op">,</tt> <tt class="py-string">'IPRangeSet'</tt><tt class="py-op">,</tt> <tt class="py-string">'Wildcard'</tt><tt class="py-op">,</tt> </tt>
<a name="L80"></a><tt class="py-lineno">80</tt>  <tt class="py-line">    <tt class="py-string">'EUI'</tt><tt class="py-op">,</tt> <tt class="py-string">'OUI'</tt><tt class="py-op">,</tt> <tt class="py-string">'IAB'</tt><tt class="py-op">,</tt> </tt>
<a name="L81"></a><tt class="py-lineno">81</tt>  <tt class="py-line"> </tt>
<a name="L82"></a><tt class="py-lineno">82</tt>  <tt class="py-line">    <tt class="py-comment">#   functions</tt> </tt>
<a name="L83"></a><tt class="py-lineno">83</tt>  <tt class="py-line">    <tt class="py-string">'nrange'</tt><tt class="py-op">,</tt> </tt>
<a name="L84"></a><tt class="py-lineno">84</tt>  <tt class="py-line"><tt class="py-op">]</tt> </tt>
<a name="L85"></a><tt class="py-lineno">85</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th bgcolor="#70b0f0" class="navbar-select"
          >&nbsp;&nbsp;&nbsp;Home&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >netaddr</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Jan 21 23:41:06 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
